﻿using DataAccess.Model.Entities;
using System.Collections.Generic;

namespace DataAccess.Model
{
    public class TableModel
    {
        public string DbName { set; get; }
        public string TableName { set; get; }

        public string TableDes { set; get; }

        public List<FieldModel> Fields { set; get; }

        public void SetFileds(List<FieldEntity> fields)
        {
            Fields = new List<FieldModel>();
            foreach (var item in fields)
            {
                var field = new FieldModel(item);
                Fields.Add(field);
            }
        }
    }
}
